// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type {NextApiRequest, NextApiResponse} from 'next'

type Data = {
  success:boolean,
  data:any;
}

export default function handler(
  req: NextApiRequest,
  res: NextApiResponse<Data>
) {
  res.status(200).json({
    success: true,
    data: [
      {
        id: 10,
        likeName:'小刚',
        cid:'123456',
      },
       {
        id: 11,
        likeName:'小名',
      },
       {
        id: 12,
        likeName:'小列',
        cid:'123456',
      },
       {
        id: 13,
        likeName:'小虹',
      },

    ]
  })
}
